package com.aiwei.tdjk.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * Created by yanfeng on 2016/12/22
 */
@NoArgsConstructor
@AllArgsConstructor
public enum BookingContainerStatusEnum {
    apply(1,"提交申请"), delivering(2,"分货未完成"), deliveried(3,"分货已完成"), deleted(4,"删除撤回"),refuse(5,"仓库撤回");

    @Getter
    private Integer code;
    @Getter
    private String info;


    public static BookingContainerStatusEnum getValue(Integer code) {
        final BookingContainerStatusEnum[] values = BookingContainerStatusEnum.values();
        for (BookingContainerStatusEnum value : values) {
            if (value.getCode().equals(code)) {
                return value;
            }
        }
        return null;
    }
}
